Add samples directory with code examples#152
Merged
YouNeedCryDear merged 3 commits intooracle:mainfrom Mar 5, 2026
Merged
Conversation
Add 8 sample categories covering all langchain-oci features: - 01: Getting started with basic chat and authentication - 02: Vision and multimodal (image, PDF, video, audio) - 03: Building AI agents with ReAct pattern - 04: Tool calling mastery including parallel tools - 05: Structured output with Pydantic schemas - 07: Async patterns for production - 09: Provider deep-dive (Meta, Gemini, Cohere, xAI) - 10: Text and image embeddings for RAG Each sample supports environment variable configuration: - OCI_COMPARTMENT_ID - OCI_SERVICE_ENDPOINT - OCI_AUTH_PROFILE Includes run_integration_tests.py for automated testing. All 16 runnable samples pass integration tests.
Move samples from libs/oci/samples/ to samples/ at the root level, matching the structure used by langchain-aws.
mdrxy
pushed a commit
to langchain-ai/docs
that referenced
this pull request
Mar 5, 2026
## Summary Update the OCI provider documentation to link to `samples/` instead of `tutorials/`. This aligns with the samples directory being added to langchain-oracle (see oracle/langchain-oracle#152). ## Changes - Rename "Tutorials" section to "Samples" - Update all GitHub links from `/tutorials/` to `/samples/` - No content changes, just link updates ## Related - oracle/langchain-oracle#152 - Add samples directory with code examples
Contributor
Author
|
Hi @YouNeedCryDear , This PR adds a What's included:
Related PRs in langchain-ai/docs:
Next step: Once this is merged and the docs PRs are in, we should consider adding OCI to the main provider tabs in LangChain docs (alongside AWS, Google, Azure, etc.). This would give OCI first-class visibility as a major cloud provider integration. Let me know if you'd like any changes to the samples! Thanks, |
YouNeedCryDear
approved these changes
Mar 5, 2026
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a comprehensive
samples/directory with runnable code examples covering all langchain-oci features. This mirrors the structure used by langchain-aws.8 Sample Categories:
Features:
OCI_COMPARTMENT_ID,OCI_AUTH_PROFILE)run_integration_tests.pyfor automated testingTest plan
samples/run_integration_tests.py- 16/16 samples pass